#pragma once
#include "afxcmn.h"
#include "GridCtrl\GridCtrl.h"
#include "RealObject\Product.h"
#include "afxwin.h"

// CWholeSellDlg dialog

class CWholeSellDlg : public CDialog
{
	DECLARE_DYNAMIC(CWholeSellDlg)

public:
	CWholeSellDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CWholeSellDlg();

// Dialog Data
	enum { IDD = IDD_DIA_WHOLESELL };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);     // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnBnClickedButSell();
	void insertToList(CProduct* pProduct);
	CGridCtrl m_grid_product;
	CEdit m_ctrlName;
	afx_msg void OnEnChangeEdName();
	afx_msg void OnBnClickedButFind();
	void OnEndEditCountBuy(NMHDR *pNMHDR, LRESULT *pResult);

	vector<CProduct*> m_vtProduct;
	vector<int>	m_vtCount;	
};
